//
//  spreadsheet.swift
//  C012_spreadsheet
//
//  Created by yao_yu on 15/6/11.
//  Copyright © 2015年 yao_yu. All rights reserved.
//

import UIKit

let commonRowHeight:CGFloat = 44.0

class YYTableHeaderView: UIView {
    var items: [(Double,String)]! {
        didSet {
            
            updateLabels()
        }
    }
    var height: CGFloat = commonRowHeight
    var width: CGFloat = 0 {
        didSet {
            updateLabels()
        }
    }
    private var labels: [UILabel]!
    
    private func updateLabels(){
        if width > 0 {
            
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
    }
    
    required init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
}


class YYSpreadSheet: UIView {
    var headers: [String]!
    var headerHeight:CGFloat = commonRowHeight
    var rowHeight:CGFloat = commonRowHeight
    var leftArray: [NSDictionary]!
    var rightArray: [NSDictionary]!
    
    var leftScrollView: UIScrollView!
    var rightScrollView: UIScrollView!

    var leftHeader:UIView!
    var rightHeader: UIView!
    
    var leftTableView = UITableView(frame: CGRectZero)
    var rightTableView = UITableView(frame: CGRectZero)
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
    }
    
    required init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
}